package com.huang.design.behavior.Responsibility;

public class MainTest {
    public static void main(String[] args) {
        Teacher hjw = new Teacher("hjw");
        Teacher hjw2 = new Teacher("hjw2");
        Teacher hjw3= new Teacher("hjw3");

        //构造链条
        hjw.setNext(hjw2);
        hjw2.setNext(hjw3);

        hjw.handleRequest();
    }
}
